/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pt.isel.medknow.tables;

import java.util.Date;

/**
 *
 * @author fallen
 */
public class Visit {
    //<editor-fold defaultstate="collapsed" desc="fields">

    private Integer visitId;
    private Integer patientId;
    private Integer doctorId;
    private Date date;
    private String astigmatic;
    private String tearRate;
    private String prescription;
    private String lenses;
    private Doctor doctor;
    private Patient patient;
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="IDE generated stuff">
    public Patient getPatient() {
        return patient;
    }

    public void setPatient(Patient patient) {
        this.patient = patient;
    }
    
    public Integer getPatientId() {
        return patientId;
    }

    public void setPatientId(Integer patientId) {
        this.patientId = patientId;
    }

    public Integer getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Integer doctorId) {
        this.doctorId = doctorId;
    }

    public String getAstigmatic() {
        return astigmatic;
    }

    public void setAstigmatic(String astigmatic) {
        this.astigmatic = astigmatic;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getLenses() {
        return lenses;
    }

    public void setLenses(String lenses) {
        this.lenses = lenses;
    }

    public String getPrescription() {
        return prescription;
    }

    public void setPrescription(String prescription) {
        this.prescription = prescription;
    }

    public String getTearRate() {
        return tearRate;
    }

    public void setTearRate(String tearRate) {
        this.tearRate = tearRate;
    }

    public Integer getVisitId() {
        return visitId;
    }

    public void setVisitId(Integer visitId) {
        this.visitId = visitId;
    }

    public Doctor getDoctor() {
        return doctor;
    }

    public void setDoctor(Doctor doctor) {
        this.doctor = doctor;
    }
    //</editor-fold>
    
    public Visit() {
    }

    @Override
    public String toString() {
        return String.format("visitId=%s, patientId=%s, doctorId=%s, date=%s, "
                + "asti=%s, tearRate=%s, prescription=%s, lenses=%s",
                visitId.toString(), patientId.toString(), doctorId.toString(),
                date.toString(), astigmatic, tearRate, prescription, lenses);
    }
}
